<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php echo $this->_var['siteinfo']['title']; ?>-<?php echo $this->_var['city']; ?>分站</title>
<link rel="alternate" title="订阅更新" type="application/rss+xml" />
<link rel="stylesheet" href="<?php echo $this->_var['siteinfo']['tempath']; ?>inc/meituan.css"
	type="text/css" media="screen" charset="utf-8" />
	<link rel="stylesheet" href="<?php echo $this->_var['siteinfo']['tempath']; ?>inc/meituan2.css"
	type="text/css" media="screen" charset="utf-8" />
<script src="<?php echo $this->_var['siteinfo']['tempath']; ?>inc/js/jquery.js" type="text/javascript"></script>

<script language="javascript">
$(function(){



	$("#newcity").html($("#fm_city").val());
	$("#fm_city").change(function(){
		$("#newcity").html($("#fm_city").val());
	});




	$("#subinfo1").click(function(){	
		var subemail1=$("#subemail1").val();
		var fm_city=$("#fm_city").val();
		if($("#subemail1").chk(rule["mail"])==false){
			$("#xsubmsg").html("您输入的邮箱信息有误");
		}else{
			$.ajax({       
				//   type: "POST",
				 url: "ajax/do.php",
				 data: "action=subinfo1&subcity="+fm_city+"&subemail="+subemail1,
				 success: function(msg){
				//	  alert(msg);
				
			         if(msg=="mail_has"){
			        	// alert("您的邮件已经订阅了该市的团购信息");
			        	$("#xsubmsg").html("您的邮件已经订阅了该地区的团购信息");
			              }
			         if(msg=="mail_add"){
			        	 //alert("恭喜您，订阅成功");

			        	 $("#xsubmsg").html("恭喜您，订阅成功");
			             }
			         if(msg=="mail_unadd"){
			        	 //alert("订阅失败，稍后再试");
			        	 $("#xsubmsg").html("订阅失败，稍后再试");
			             }
					
						  //*/
				     }
		   
				  });


			
		}
		});
	
})


</script>


<meta name="description" content="<?php echo $this->_var['city']; ?>分站-<?php echo $this->_var['siteinfo']['discretion']; ?>" />
<meta name="keywords" content="<?php echo $this->_var['city']; ?>分站-<?php echo $this->_var['siteinfo']['keywords']; ?>" />
</head>
<body class="bg-alt bg-newbie">

<div id="hdw">
<div id="hd"><?php echo $this->fetch('head.htm'); ?></div>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<DIV id=maillist>
<DIV id=content>
<DIV class=box>
<DIV class=box-top></DIV>
<DIV class="box-content welcome">
<DIV class=head>
<H2>邮件订阅</H2>
</DIV>
<DIV class=sect>
<DIV class=enter-address>
<P class="enter-top welcome-title" id="xsubmsg">把每天<span id="newcity"></span>最新的精品团购信息发到您的邮箱。</P>
<DIV class=enter-address-c>

<DIV class=mail><LABEL>邮件地址：</LABEL> <INPUT class="f-input f-mail"
	id=subemail1 name=email> <SPAN class=tip>请放心，我们和您一样讨厌垃圾邮件</SPAN>
</DIV>
<DIV class=city><LABEL id=enter-address-city-label>选择您的城市：</LABEL>
<?php echo $this->html_select(array('options'=>$this->_var['citylist'],'name'=>'fm_city','id'=>'fm_city','selected'=>$this->_var['city'])); ?>

<!-- 
<SELECT class=f-city name=cityid>
	<OPTION value=1>北京</OPTION>
	<OPTION value=10>上海</OPTION>
	<OPTION value=57>武汉</OPTION>
	<OPTION value=42>西安</OPTION>
	<OPTION value=20>广州</OPTION>
	<OPTION value=56>合肥</OPTION>
	<OPTION value=30>深圳</OPTION>
	<OPTION value=50>杭州</OPTION>
	<OPTION value=40>天津</OPTION>
	<OPTION value=55 selected>南京</OPTION>
	<OPTION value=51>宁波</OPTION>
	<OPTION value=59>成都</OPTION>
	<OPTION value=70>长沙</OPTION>
	<OPTION value=73>郑州</OPTION>
	<OPTION value=62>厦门</OPTION>
	<OPTION value=45>重庆</OPTION>
	<OPTION value=44>福州</OPTION>
	<OPTION value=76>石家庄</OPTION>
	<OPTION value=65>大连</OPTION>
	<OPTION value=66>沈阳</OPTION>
	<OPTION value=60>青岛</OPTION>
	<OPTION value=80>苏州</OPTION>
	<OPTION value=52>无锡</OPTION>
	<OPTION value=114>昆明</OPTION>
	<OPTION value=96>济南</OPTION>
</SELECT>
 -->

<INPUT class=formbutton id="subinfo1" type="button" value=订阅>
	<!-- 
	<SPAN
	class=tip><A id=subscribe-other
	href="##">没有您所在的城市？</A>
	</SPAN>--></DIV>

</DIV>
<DIV class=clear></DIV>
</DIV>
<DIV class=intro>
<P>每日精品团购包括：</P>
<P>餐厅、酒吧、KTV、SPA、美发、健身、瑜伽、演出、影院等。</P>
</DIV>
</DIV>
</DIV>
<DIV class=box-bottom></DIV>
</DIV>
</DIV>


<?php echo $this->fetch('sidebar.htm'); ?>

</DIV>
</DIV>
<!-- bd end --></div>
<!-- bdw end -->


<?php echo $this->fetch('foot.htm'); ?>


<!-- doc end -->

</body>
</html>
